import Vue from "vue";
import VueRouter from "vue-router";
import HomeView from "../views/HomeView.vue";
import FeedbackView from "../views/FeedbackView.vue";
import MeView from "../views/MeView.vue";
import LoginForm from "../components/LoginForm.vue";
import OrderForm from "../views/OrderForm.vue";
import ServicesForm from "../views/ServicesForm.vue";
import CouponsForm from "../views/CouponsForm.vue";
import StudyPage from "../views/StudyPage.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "HomeView",
    component: HomeView,
  },
  {
    path: "/feedback",
    name: "FeedbackView",
    component: FeedbackView,
  },
  {
    path: "/me",
    name: "MeView",
    component: MeView,
  },
  {
    path: "/orders",
    name: "Orders-form",
    component: OrderForm,
  },
  {
    path: "/services",
    name: "Services-form",
    component: ServicesForm,
  },
  {
    path: "/coupons",
    name: "Coupons-form",
    component: CouponsForm,
  },
  {
    path: "/study",
    name: "StudyPage",
    component: StudyPage,
  },
  { path: "/login", component: LoginForm },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
